feat: add public v1 endpoints (CM-967)#3864
Merged
joanagmaia merged 17 commits intomainfrom Mar 6, 2026
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
backend/src/api/public/v1/members/work-experiences/verifyMemberWorkExperience.ts
Outdated
Show resolved
Hide resolved
backend/src/api/public/v1/members/identities/verifyMemberIdentity.ts
Outdated
Show resolved
Hide resolved
backend/src/api/public/v1/members/work-experiences/verifyMemberWorkExperience.ts
Outdated
Show resolved
Hide resolved
joanagmaia
reviewed
Mar 4, 2026
Contributor
joanagmaia
left a comment
There was a problem hiding this comment.
@skwowet only 1 endpoint missing at this point which is to get the project affiliations with the associated maintainers roles services/apps/data_sink_worker/src/service/member.service.ts.
We can add this after, non-blocking for the PR
themarolt
requested changes
Mar 4, 2026
backend/src/api/public/v1/members/work-experiences/createMemberWorkExperience.ts
Show resolved
Hide resolved
backend/src/api/public/v1/members/identities/verifyMemberIdentity.ts
Outdated
Show resolved
Hide resolved
backend/src/api/public/v1/members/identities/verifyMemberIdentity.ts
Outdated
Show resolved
Hide resolved
backend/src/api/public/v1/members/work-experiences/createMemberWorkExperience.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
themarolt
approved these changes
Mar 5, 2026
Contributor
themarolt
left a comment
There was a problem hiding this comment.
Some conflicts to resolve but LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Introduces new public endpoints and touches member identity/work-experience mutation plus a large refactor of unmerge/data-access behavior; errors could impact member data integrity, cache correctness, or unmerge workflows if edge cases were missed.
Overview
Adds a new OAuth2-protected Public API
v1surface for member and organization operations: resolving members by identities, listing/verifying member identities, reading maintainer roles, CRUD/verify work experiences, and getting/creating organizations, with request validation viazodand a sharedvalidateOrThrowhelper.Refactors member unmerge and cache invalidation: moves unmerge preview/execution + Temporal kickoff into
@crowd/common_services, replaces per-service cache invalidation withinvalidateMemberQueryCache, and updates internal merge/unmerge handlers and related workers accordingly.Improves public API observability by logging unhandled errors and sending Slack alerts, tightens request typing via global Express
Requestaugmentation, renames/expands public OAuth scopes, and consolidates affiliation-override DAL functions undermember-organization-affiliationwhile updating member/org DAL methods to support new verified fields and return updated rows.Written by Cursor Bugbot for commit 8bca20d. This will update automatically on new commits. Configure here.